<!doctype html>
<html>
<head>
<title>Launch event</title>
</head>
<body>
<h2> </h2>
      
      <h1> Congratulations your event has been launched successfully </h1>
      <h3> Location is : {{template.location.name}}</h3>
      <h3> Media type : {{template.media.Mediatype}}</h3>
      <h3> Planned activities : {{template.agenda.activity }}</h3>
      <h3> Payment amount : {{template.payment.amount}}</h3>
      <h3> LiveStream : {{template.Livestream.channel}}</h3>
          
		{% load oembed_tags %}
		{% oembed %}
		 <iframe src="{{ resource }}" width="608" height="368" scrolling="no"></iframe> 
		{% endoembed %}

      <h3> Twitter : {{template.Socialmarketing.twitterUrl}}</h3>
      <h3> Facebook : {{template.Socialmarketing.facebookUrl}}</h3>
      <h3> HashTag: {{template.Socialmarketing.hashTag}}</h3>
      
      <h2> {{pageCounter}}</h2>
      
      
      <TABLE id="dataTable" width="350px" border="1">
      	<tr>
			<th> Time</th>
			<th> Description</th>
		</tr>
		{% for A in activities %}
		<tr>
		
		<TD> <OUTPUT type = "time" name = "time" /> {{ A.startTime }} - {{  A.endTime }} </TD>
		<TD>  <OUTPUT type = "text" /> {{ A.description }} </TD>
		
		</tr>
		{% endfor %}
	
  </TABLE>
  
  <form action="/sendInvitation/" method="POST">
  <button type ="submit" value = "submit" >Send Invitation</button>
  </form>
  
      
    <form name="social_form" method="post">{% csrf_token %}
   <input type="submit" value="Share Event" onclick="social_form.action='./{{e.id}}/share/'; return true" />
   </br>
   <input type="submit" value="Like Event" onclick="social_form.action='./{{e.id}}/like/{{user.id}}/'; return true" /><!---- TO BE DONE user id ./like/{{request.session['id']}}/ ---->
</form>
{{numberoflikes}} Likes </br>
{{sharenumber}} Shared

{% if attending %}
	Number of Attendees: {{ attending }}
{% else %}
	Number of Attendees: 0
{% endif %}

<br>
{% if maybeAttending %}
	Number of Maybe Attending: {{ maybeAttending }}
{% else %}
	Number of Maybe Attending: 0
{% endif %}

<br>
{% if notAttending %}
	Number of Not Attending: {{ notAttending }}
{% else %}
	Number of Not Attending: 0
{% endif %}

<br>
{% if payedAttendees %}
	Number of payed Attendees: {{ payedAttendees }}
{% else %}
	Number of payed Attendees: 0
{% endif %}

<br>
Number of Viewers : {{pageCounter}}

</body>
</html>